home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / gift40b7.arc / TESTGIF.BAT < prev   
DOS Batch File  |  1992-01-04  |  933b  |  34 lines

  1. @echo off
  2. rem  ProDoor/PCBoard batch file for testing GIF files
  3. rem  using GIFtest.  Requires ProEcho from Sam Smith.
  4. rem  must call with "testgif %filename% %comport%"
  5. rem  Log GIFs to C:\PRODOOR\GIFLOG
  6. rem  Minimum size GIFs 321x201x16
  7. rem  Node 1 - Search for GIFTEST.CFG in the current directory
  8. rem  Erase failed GIFs
  9. giftest %1 /P:%2 /L:C:\PRODOOR\GIFLOG /E /M:321x201x16 /N:1
  10. if errorlevel==25 goto DUPE
  11. if errorlevel==20 goto BADREZ
  12. if errorlevel==10 goto GIFLITE
  13. if errorlevel==1 goto INCOMPLETE
  14. proecho %2 ~Passed all tests!~~
  15. goto end
  16. :INCOMPLETE
  17. proecho %2 ~Invalid Image or Incomplete Upload
  18. proecho %2 ~Deleting GIF...~~
  19. del %1
  20. goto end
  21. :GIFLITE
  22. proecho %2 ~Detected GIFLITE, passed all tests~~
  23. goto end
  24. :BADREZ
  25. proecho %2 ~Failed Minimum Resolution of 321x201x16
  26. proecho %2 ~Deleteing GIF...~~
  27. del %1
  28. goto end
  29. :DUPE
  30. proecho %2 ~Duplicate GIF!
  31. proecho %2 ~Deleting GIF...~~
  32. del %1
  33. :END
  34.